<?php
include_once 'icn/config.php';
include_once 'icn/mysql.class.php';
include_once 'icn/myfunction.php';
	$order_id = $_GET['order_id'];
	$mysql =new mysql();
	$mysql->open($dbconfig);
	$banshichu = $mysql->select("`id`,`banshi`,`newdate`,`listdeta`", "banshichu","`order_id`=$order_id");
	//print_r($banshichu);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>办事处</title>
</head>
<body>
<?php foreach ($banshichu as $value) {?>
	<table width="98%" border="1">
	  <tr>
	  	<td >办事处：<font color="#FF0000"><?php echo $value[banshi]?></font></td>
	    <td> ID:<?php echo $value[id] ?> </td> 
	    <td>创建时间：<?php echo $value[newdate]?></td>
	    <td><a href="banshichu_edit.php?banshichu_id=<?php echo $value[id] ?>">编辑</a>|<a href="banshichu_add.php?order_id=<?php echo $_GET['order_id'] ?>">添加</a></td>
	  </tr>
	  <tr>
	    <th colspan="4" scope="row"><?php echo  json_tabel($value[listdeta]) ?></th>
	  </tr>
	</table>
<?php }?>
</body>
</html>
